package com.imooc.api.feign;

import com.imooc.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @version 1.0
 * @Author Mr.Yang
 * @Date 2024-08-23 15:36
 * @question:
 */

@FeignClient("work-service")    //告诉springCloud容器,本接口为调用远程服务的service(声明式客户端远程调用)
public interface WorkMicroServiceFeign {

    @PostMapping("/resume/init")
    public GraceJSONResult init(@RequestParam("userId") String userId);

}
